<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title></title>
</head>
<body>
<script>
  //创建一个对象，描述一个学生:
    //属性: 姓名:Li Lei
         //年龄:11
    //功能: 自我介绍:
         //I'm Li Lei,I'm 11
//  var lilei={
//    sname:"Li Lei",
//    sage:11,
//    intr(){
//      console.log(
//        "I'm "+this.sname
//        +",I'm "+this.sage);
//    }
//  }
  var lilei=new Object();
  lilei.sname="Li Lei";
  lilei.sage=11;
  lilei.intr=function(){
    console.log(
        "I'm "+this.sname
        +",I'm "+this.sage);
  }
  console.dir(lilei);
  lilei.intr();
  //lilei.sage++;
  lilei["sage"]++;
  console.log(lilei.sage);
  lilei.intr();
</script>
</body>
</html>